using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class DeleteBottle : GeneratedMessageLite<DeleteBottle, DeleteBottle.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<DeleteBottle, DeleteBottle.Builder>
		{
			private bool resultIsReadOnly;
			private DeleteBottle result;
			protected override DeleteBottle.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override DeleteBottle MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override DeleteBottle DefaultInstanceForType
			{
				get
				{
					return DeleteBottle.DefaultInstance;
				}
			}
			public string BottleId
			{
				get
				{
					return this.result.BottleId;
				}
				set
				{
					this.SetBottleId(value);
				}
			}
			public int ThrowBackType
			{
				get
				{
					return this.result.ThrowBackType;
				}
				set
				{
					this.SetThrowBackType(value);
				}
			}
			public Builder()
			{
				this.result = DeleteBottle.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(DeleteBottle cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private DeleteBottle PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					DeleteBottle other = this.result;
					this.result = new DeleteBottle();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override DeleteBottle.Builder Clear()
			{
				this.result = DeleteBottle.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override DeleteBottle.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new DeleteBottle.Builder(this.result);
				}
				return new DeleteBottle.Builder().MergeFrom(this.result);
			}
			public override DeleteBottle BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override DeleteBottle.Builder MergeFrom(IMessageLite other)
			{
				if (other is DeleteBottle)
				{
					return this.MergeFrom((DeleteBottle)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override DeleteBottle.Builder MergeFrom(DeleteBottle other)
			{
				return this;
			}
			public override DeleteBottle.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override DeleteBottle.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(DeleteBottle._deleteBottleFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = DeleteBottle._deleteBottleFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (num3 != 16u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasThrowBackType = input.ReadInt32(ref this.result.throwBackType_);
						}
					}
					else
					{
						this.result.hasBottleId = input.ReadString(ref this.result.bottleId_);
					}
				}
				return this;
			}
			public DeleteBottle.Builder SetBottleId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBottleId = true;
				this.result.bottleId_ = value;
				return this;
			}
			public DeleteBottle.Builder ClearBottleId()
			{
				this.PrepareBuilder();
				this.result.hasBottleId = false;
				this.result.bottleId_ = "";
				return this;
			}
			public DeleteBottle.Builder SetThrowBackType(int value)
			{
				this.PrepareBuilder();
				this.result.hasThrowBackType = true;
				this.result.throwBackType_ = value;
				return this;
			}
			public DeleteBottle.Builder ClearThrowBackType()
			{
				this.PrepareBuilder();
				this.result.hasThrowBackType = false;
				this.result.throwBackType_ = 0;
				return this;
			}
		}
		public const int BottleIdFieldNumber = 1;
		public const int ThrowBackTypeFieldNumber = 2;
		private static readonly DeleteBottle defaultInstance;
		private static readonly string[] _deleteBottleFieldNames;
		private static readonly uint[] _deleteBottleFieldTags;
		private bool hasBottleId;
		private string bottleId_ = "";
		private bool hasThrowBackType;
		private int throwBackType_;
		private int memoizedSerializedSize = -1;
		public static DeleteBottle DefaultInstance
		{
			get
			{
				return DeleteBottle.defaultInstance;
			}
		}
		public override DeleteBottle DefaultInstanceForType
		{
			get
			{
				return DeleteBottle.DefaultInstance;
			}
		}
		protected override DeleteBottle ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string BottleId
		{
			get
			{
				return this.bottleId_;
			}
		}
		public int ThrowBackType
		{
			get
			{
				return this.throwBackType_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasThrowBackType;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBottleId)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.BottleId);
				}
				if (this.hasThrowBackType)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.ThrowBackType);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private DeleteBottle()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] deleteBottleFieldNames = DeleteBottle._deleteBottleFieldNames;
			if (this.hasBottleId)
			{
				output.WriteString(1, deleteBottleFieldNames[0], this.BottleId);
			}
			if (this.hasThrowBackType)
			{
				output.WriteInt32(2, deleteBottleFieldNames[1], this.ThrowBackType);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBottleId)
			{
				num ^= this.bottleId_.GetHashCode();
			}
			if (this.hasThrowBackType)
			{
				num ^= this.throwBackType_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			DeleteBottle deleteBottle = value as DeleteBottle;
			return deleteBottle != null && (this.hasBottleId == deleteBottle.hasBottleId && (!this.hasBottleId || this.bottleId_.Equals(deleteBottle.bottleId_))) && (this.hasThrowBackType == deleteBottle.hasThrowBackType && (!this.hasThrowBackType || this.throwBackType_.Equals(deleteBottle.throwBackType_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<DeleteBottle, DeleteBottle.Builder>.PrintField("BottleId", this.hasBottleId, this.bottleId_, writer);
			GeneratedMessageLite<DeleteBottle, DeleteBottle.Builder>.PrintField("ThrowBackType", this.hasThrowBackType, this.throwBackType_, writer);
		}
		public static DeleteBottle ParseFrom(byte[] data)
		{
			return DeleteBottle.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private DeleteBottle MakeReadOnly()
		{
			return this;
		}
		public static DeleteBottle.Builder CreateBuilder()
		{
			return new DeleteBottle.Builder();
		}
		public override DeleteBottle.Builder ToBuilder()
		{
			return DeleteBottle.CreateBuilder(this);
		}
		public override DeleteBottle.Builder CreateBuilderForType()
		{
			return new DeleteBottle.Builder();
		}
		public static DeleteBottle.Builder CreateBuilder(DeleteBottle prototype)
		{
			return new DeleteBottle.Builder(prototype);
		}
		static DeleteBottle()
		{
			DeleteBottle.defaultInstance = new DeleteBottle().MakeReadOnly();
			DeleteBottle._deleteBottleFieldNames = new string[]
			{
				"BottleId",
				"ThrowBackType"
			};
			DeleteBottle._deleteBottleFieldTags = new uint[]
			{
				10u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.DeleteBottle.Descriptor, null);
		}
	}
}
